package com.common.tools.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.common.api.annontation.ServiceLog;
import com.common.api.model.PageModel;
import com.common.tools.api.dto.OperateLogDto;
import com.common.tools.api.service.OperateLogService;
import com.common.web.annotation.ControllerRequest;
import com.common.web.dto.request.FuzzyPageDTO;
import com.common.web.dto.response.RestResponse;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 操作日志前端控制器
 * </p>
 * @author liuchao
 */
@ServiceLog
@ControllerRequest("/operateLog/")
@Api(tags = "系统工具-操作日志服务接口")
public class OperateLogController {

	@Autowired
	private OperateLogService operateLogService;
	
	/**
	 * @param fuzzyPageDTO
	 * @return
	 */
    @ApiOperation(value = "查询操作日志集合")
    @RequestMapping(value="queryList")
    public RestResponse queryList(@RequestBody FuzzyPageDTO fuzzyPageDTO) {
      	PageModel<OperateLogDto> page= operateLogService.queryList(fuzzyPageDTO);
        return RestResponse.success("查询操作日志集合成功!").setData(page);
    }	
}
